package labox.innovation.gameserver.model.base;

/**
 * This class ...
 *
 * @version $Revision: 1.2.4.1 $ $Date: 2005/03/27 15:29:32 $
 */
public enum Sex {
	
	/**
	 * 男性
	 */
	MALE("男性"),

	/**
	 * 女性
	 */
	FEMALE("女性");
	
	private final String _name;
	
	private Sex(String name){
		_name=name;
	}

	public int getId() {
		return ordinal();
	}
	
	public String getName(){
		return _name;
	}

	public static final Sex getSex(int id) {
		return Sex.values()[id];
	}
}
